-- GENERATED SPELL FOR [Blackhand Elite] --


function spell0_10317(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10317', 2350, 1)
end

function spell1_10317(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(16172,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10317', 20288, 1)
end

function spell2_10317(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10317', 511, 1)
end

function Sorts_10317(pUnit, Event)
local choix_sorts_10317 = math.random(0, 2)
if choix_sorts_10317 == 0 then
pUnit:RegisterEvent('spell0_10317', 1, 1)
end
if choix_sorts_10317 == 1 then
pUnit:RegisterEvent('spell1_10317', 1, 1)
end
if choix_sorts_10317 == 2 then
pUnit:RegisterEvent('spell2_10317', 1, 1)
end
end

function mob10317_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10317', math.random(1500, 3000), 1)
end

function mob10317_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10317_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10317_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10317, 1, 'mob10317_Action')
RegisterUnitEvent(10317, 2, 'mob10317_Leave')
RegisterUnitEvent(10317, 3, 'mob10317_Kill')
RegisterUnitEvent(10317, 4, 'mob10317_Die')
